<template>
    <div v-if="$store.state.isLogin == false" class="noLoginBox" ref="fork">
      <div>
        <van-icon name="close" @click="disappear"/>
        <span>登录抢爆款商品</span>
      </div>
      <router-link tag="button" to="/accountsign">立即登录</router-link>
    </div>
</template>

<script>
export default {
  name: "NoLogin",
  methods:{
    disappear(){
      this.$refs.fork.style.display = 'none'
    }
  }
}
</script>

<style lang="less" scoped>
  .noLoginBox{
    position: fixed;
    bottom: 60px;
    left: 5%;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    height: 35px;
    padding: 0 20px;
    border-radius: 50px;
    color: white;
    background-color: rgba(0,0,0,.4);
    div{
      text-align: center;
    }
    span{
      margin-left: 10px;
    }
    button{
      width: 100px;
      height: 25px;
      line-height: 25px;
      border: 0;
      border-radius: 50px;
      background-color: #EC0D0D;
    }
  }

</style>